Package-level declarations
Types
Holds the animated visibility state for a component, including the current visibility boolean and an animated alpha value.
Stable identifier namespace used by Stylish UI's component roots.
The cross-component interaction contract used by Stylish UI.
Height buckets used when vertical space changes the layout strategy.
Platform-independent window classification derived from available content space.
Width buckets shared by phone, tablet, desktop, and web layouts.
Describes the visibility behavior of a UI element that can be shown or hidden based on scroll position or other conditions.
Properties
The default interaction contract for all Stylish components.
Composition local that forces the reduced-motion mode for isStylishReducedMotionEnabled, regardless of the platform setting.
Functions
Classifies the available size using the Material adaptive breakpoints.
Classifies a window using caller-provided breakpoints.
Computes the outer corners for the item at index in a vertical (column) Connected UI list.
Returns the outline edges for the item at index in a vertical (column) Connected UI list.
Computes the outer corners for the item at index in a grid-based Connected UI layout.
Returns the outline edges for the item at index in a grid-based Connected UI layout.
Builds a position-aware RoundedCornerShape for the item at index in a grid-based Connected UI layout.
Computes the outer corners for the item at index in a horizontal (row) Connected UI list.
Returns the outline edges for the item at index in a horizontal (row) Connected UI list.
Builds a RoundedCornerShape for a Connected UI item based on its corners configuration.
Determines whether a component should behave as an interactive (actionable) element.
Returns whether the current platform requests reduced motion.
Returns the current visibility state as a boolean, observing any reactive sources (such as VisibilityState.ScrollAware.scrollState) as needed.
Creates a VisibilityState.NestedScrollAware for a nested-scrolling container.
Remembers one focus requester per item in a keyboard-navigable collection.
Hoists an interaction source without forcing every component to repeat the nullable-source boilerplate. Passing a source keeps interaction state observable by the caller and tests.
Computes the animated visibility state for a given VisibilityState, providing both the current visibility boolean and an animated alpha value.
Selects content from the space actually offered by the parent, without platform APIs. The medium and expanded slots default down to the next smaller layout.
Returns the WCAG 2.2 contrast ratio between two colors, from 1 to 21.
Draws a focus indicator ring around this component while the interactionSource reports a focus interaction.
Resolves the shared elevation ladder for an actionable surface.
Applies the common interaction contract to a custom surface.
Applies the platform minimum touch target to an interactive Stylish element.
Applies a caller-selected minimum target while retaining Material 3's local minimum-target semantics. The explicit size constraint makes custom components obey the same contract even when a host application changes LocalMinimumInteractiveComponentEnforcement.
Whether normal text meets WCAG AA (4.5:1).
Adds a restrained press-scale response to an interactive surface.
Adds roving focus behavior to a collection item. Arrow/Home/End keys are handled and the callback receives the target index; the caller owns the requesters so focus remains hoisted.
Draws the Material 3 state-layer overlay on top of this component's content.
Adds Stylish UI's stable component identifier to a root node.